package com.lagou.ex.springboot.mybatisplus.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lagou.ex.springboot.mybatisplus.base.model.UserModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper extends BaseMapper<UserModel> {

    /**
     * 根据手机号码查询
     *
     * @param phone
     * @return 用户列表
     */
    List<UserModel> queryByPhone(@Param("phone") String phone);

}
